import svar
import os

os.mkdir('jpg_tiles')

tiles=svar.load('svar_tilecache')
messenger=svar.load('svar_messenger').messenger

def cbk_progress(msg):
  print(msg)

sub = messenger.subscribe('sbt.output.progress_percent',0,cbk_progress)

tiles.convert_to_jpegfolder('/data/zhaoyong/Program/Apps/SibituInOne/bin/map2dfusion/tilecache','jpg_tiles')

#tiles.convert_to_jpeg('*.tile','*.jpg')



